<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>首页详情</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
    <!-- LESS for CSS file -->
    <link href="css/css/index.css" rel="stylesheet" type="text/css">
    <link href="css/css/top_bar.css" rel="stylesheet" type="text/css">
    <link href="css/css/ask.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <div class="container-fluid">
      <div class="row" id="top_bar">
        <div class="fixed_div">  <!-- fixed_div -->
          <div class="webTitle">
            <a href="/index.html">
              <img src="image/art_logo.png">
            </a>
          </div>
          <div class="search">
            <img src="image/search.png">
            <input type="text" placeholder="搜索画室、标签">
          </div>
          <div class="switch-pages">
            <a href="/index.html"><span class="top_btn active">首页</span></a>
            <a href="/Q&A.html"><span class="top_btn">问答</span></a>
            <a href="/gallery.html"><span class="top_btn">资料</span></a>
          </div>
          <div class="operation-btns">
            <span class="log_reg" data-toggle="modal" data-target="#logModal">登录</span>
            <span class="log_reg" data-toggle="modal" data-target="#regModal">注册</span>
            <div class="user">
              <div class="avatar_userName">
                <a href="/Info.html">
                  <div class="log_avatar">
                    <img src="image/emptyAvatar.jpg"> 
                  </div>  
                  <span class="userName">name</span>
                </a> 
              </div>

              <div class="hidden_first">
                <div class="triangle"></div>  
                <div class="user-list">
                  <div class="updateInfo" data-toggle="modal" data-target="#updateInfoModal">
                    <a href="/updateUserInfo.html">修改资料</a>
                  </div>
                  <div class="changePass" data-toggle="modal" data-target="#changePassModal">修改密码</div>
                  <div class="quit">退出</div>
                </div>
              </div>
            </div>
          </div> 
        </div>
      </div>


      <!-- 中心信息框 -->
      <div class="row">
        <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1"></div> 
        <div class="article-detials col-lg-7 col-md-7 col-sm-7 col-xs-7">
          <!-- 返还首页 -->
          <div class="return_home">
            <a href="/index.html">首页</a>
            <span>&gt;</span>
            <span>详情</span>
          </div>
          <!-- 文章区...... -->
        </div>
        <!-- 右部画室信息 -->
        <div class="studio-info col-lg-4 col-md-4 col-sm-4 col-xs-4">
        </div>
      </div>

      <!-- logModal -->
      <div class="modal fade" id="logModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>
            <div class="input-line">
              <img src="image/email.png" class="account-img">
              <input type="text" id="logAccount" placeholder="输入账号"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <img src="image/lock.png" class="password-img">
              <input type="password" id="logPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="main-submit" src="image/login.png">
            </div>
            <div class="other_login">
              <img src="image/weibo.jpg">
              <span>其它登录：</span>
            </div>
          </div>
        </div>        
      </div>

      <!-- regModal -->
      <div class="modal fade" id="regModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>

            <div class="input-line">
              <div class="labels">
                <span>手机号码</span>
              </div>
              <input type="text" id="regPhone" class="short" placeholder="输入手机号码"/>
              <img class="getCode" src="image/getCode.png">
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>验证码</span>
              </div>
              <input type="text" id="regCode" placeholder="输入手机验证码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword2" placeholder="再次输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="submit-holder">
              <img class="main-submit" src="image/reg.png">
            </div>
          </div>
        </div>        
      </div>

      <!-- changePassModal -->
      <div class="modal fade" id="changePassModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">

            <div class="input-line">
              <input type="password" id="oldPassword" placeholder="输入旧密码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword1" placeholder="输入新密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword2" placeholder="确认新密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="quit" src="image/cancel.png" data-dismiss="modal">
              <img class="main-submit" src="image/confirm.png">
            </div>
          </div>
        </div>        
      </div>
       

      <!-- 提问遮罩窗 -->
      <div class="modal fade" id="askModal" tabindex="-1" role="dialog" aria-labelledby="askModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content askContainer">
            <div class="askHeader">
              <p class="askTitle">提问</p>
              <div data-dismiss="modal" class="closeAskModalBtn"></div>
              
            </div>
            <div class="askBody">
              <div class="askInput">
                <h5 class="askLabel">输入标题</h5>
                <input type="text"  id="askTitleInput" placeholder="输入标题">
              </div>
              <div class="askInput">
                <h5 class="askLabel">问题说明</h5>
                <div class="uploadMediaBtn" id="uploadImg"></div>
                <div class="uploadMediaBtn" id="uploadVideo"></div>
                <p class="selectedFileName"></p>
                <textarea id="askDescription" placeholder="输入问题的描述，可以插入图片或视频"></textarea>
                <form enctype="multipart/form-data" action="msq/api/image" method="POST" target="hidden_frame">
                  <input type="file" name="image" id="fileInput"/>
                  <!--<input type="text" name="userId" />-->
                  <input type="submit" id="uploadBtn"/>
                <iframe name='hidden_frame' id="hidden_frame" style='display:none'></iframe> 
                </form> 
              </div>
              <div class="askTagGroup">
                <h5 class="askLabel">选择标签</h5>
                <div class="askTag">素描</div>
                <div class="askTag">色彩</div>
                <div class="askTag">速写</div>
                <div class="askTag">设计</div>
                <div class="askTag">报考</div>
                <div class="askTag">动漫</div>
                <div class="askTag">油画</div>
                <div class="askTag">书法</div>
                <div class="askTag">吐槽</div>
              </div>
              <div class="actionBtns">
                <button class="btn btn-primary btn-md" id="submitBtn">发布</button>
                <button class="btn btn-default btn-md" data-dismiss="modal" id="cancelBtn">取消</button>       
              </div>
            </div>
          </div>
        </div>
      </div>

    </div>

    <!-- 中心文章模板 -->
    <script id="articles-template" type="text/x-handlebars-template">
      <div class="articles" data-articleId={{articleId}} data-studioId={{studioId}}>
        <h5>{{title}}</h5>
        <h6>{{publishTime}}</h6>
        <p>{{content}}</p>
        <div class="paintings">
          {{#each images}}
            <img src={{this}}>
          {{/each}}
        </div>
        <div class="tags-showAll">
          <span class="tags viewNum">点击 {{viewNum}}</span>
        </div>
      </div>
    </script>


    <!-- 右方所属画室信息模板 -->
    <script id="studio-template" type="text/x-handlebars-template">
      <div class="studio-container" data-studioId={{studioId}}>
        <div class="avatar_studioName">
          <div class="left-col">
            {{#if_empty avatarUrl}}
              <img src="image/emptyAvatar.jpg">  
            {{else}}
              <img src={{avatarUrl}}> 
            {{/if_empty}}
          </div> 
          <div class="right-col">
            <h1><a href="/studio.html?studioId={{studioId}}">{{name}}</a></h1>
            {{#if_watched isWatched}}
              <img class="follow" src="image/unfollow.png" data-isWatched="1">
            {{else}}
              <img class='follow' src="image/follow.png" data-isWatched="0">
            {{/if_watched}}
            <img class="ask-button" src="image/askToHim.png" data-toggle="modal" data-target="#askModal">
          </div>
        </div> 
        <ul class="studio-list-info">
          <li>电话：{{phone}}
            <a href="#">拨打</a>
          </li> 
          <li>环境：7/10
            <a href="/studio.html?studioId={{studioId}}">详情</a>
          </li> 
          <li>成绩：高分率25% 合格率70%
            <a href="/studio.html?studioId={{studioId}}">详情</a>
          </li> 
          <li>收费：2000元/年
            <a href="/studio.html?studioId={{studioId}}">详情</a>
          </li> 
        </ul>
      </div>
    </script>

    <!-- main javascript entrance -->
    <script src="js/tools/require.js" data-main="js/index_details"></script>

      <div class="footer">
        <div class="footerContent">
          <ul class="footerList">
            <li><a href="#">关于我们</a></li>
            <li><a href="#">联系我们</a></li>
            <li><a href="#">广告业务</a></li>
          </ul>
          <p class="icp">京备123号</p>
          <h2>美术帮</h2>
        </div>
      </div>

  </body>
</html>